package com.hqyj.repertory.service;

import com.hqyj.product.model.ProductInfo;
import com.hqyj.purchase.model.PurchaseInfo;
import com.hqyj.repertory.model.Repertory;
import java.util.ArrayList;

public interface RepertoryService {
    ArrayList<Repertory> queryAllRepertory();
    void addRepertory(Repertory repertory);

    Repertory queryRepertoryById(int id);

    void updateRepertory(Repertory repertory);

    void deleteRepertory(int id);

    ArrayList<Repertory> queryRepertoryCondition();

    Repertory queryRepertoryByProductMaterialsName(String name);

    void addPurchaseInfo(PurchaseInfo purchaseInfo);

    ArrayList<PurchaseInfo> queryAllNotPurchase();

    int updateRepertory(Repertory repertory,String tradeName,int num,String type,String provider,String price);

    Repertory queryAllByName(String tradeName);

    ArrayList<ProductInfo> queryAllNotProduct();

    void addProductInfo(ProductInfo productInfo);

}
